package com.starlight.ts_clouddev.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.starlight.ts_clouddev.infrastructure.entity.CloudInstance;

import java.util.List;

/**
* @author yfy2001
* @description 针对表【cloud_instance】的数据库操作Service
* @createDate 2023-05-18 15:09:14
*/
public interface CloudInstanceService extends IService<CloudInstance> {

    List<CloudInstance> listByUserId(Long userId);

    CloudInstance getDefaultInstanceByUserId(Long userId);

    Long calculateUpgradeTotalCharge(CloudInstance cloudInstance);

    Long calculateRenewTotalCharge(Long cloudInstanceId,Long deltaTime);
}
